% Figure O.1 (b)
axoptions={'scaled ticks = false',...
           'y tick label style={/pgf/number format/.cd, fixed, fixed zerofill,precision=0, set thousands separator={}}',...
           'x tick label style={/pgf/number format/.cd,precision=1, set thousands separator={}}',...
           'legend style={font=\normalsize}'}; %\scriptsize
 

figure('name','Figure O.1 (b)','NumberTitle','off')
h = loglog(OurxaxisUK_y ,OuryaxisUK_y,'LineWidth', 2); hold on
loglog(OurxaxisUK_o ,OuryaxisUK_o,'LineWidth', 2);

ax = ancestor(h, 'axes');
ax.XAxis.Exponent = 0;
ax.XAxis.TickLabelFormat = '%.0f';
xlim([min(OurxaxisUK_y), 100000])
ylim([min(OuryaxisUK_y), max(OuryaxisUK_o)])
xticklabels({'10,000', '100,000'})
yticklabels({'1,000', '10,000'})
xlabel('Income in 2017')
ylabel('1974 Income that gives the same utility as in 2017')
legend('below median age','above median age','Location','northwest')
%matlab2tikz('../fig/Money_YoungOld.tex','extraAxisOptions',axoptions);
